package io操作;

import java.io.PrintStream;
import java.nio.charset.StandardCharsets;

public class 打印流 {
    public static void file_print() throws Exception {
        try (PrintStream ps = new PrintStream("C:\\Users\\1\\Desktop\\studynote\\restudy\\缓冲字节流.txt", StandardCharsets.UTF_8)) {
            ps.println("aeiruaghp");
            ps.println("vpiughepir");
            ps.println("阿伟死了");
            ps.println("a8er7hp");
            ps.println(true);

        }
    }

    public static void main(String[] args) throws Exception {
        file_print();
    }
}
